import Child from './Child.jsx'
import { useState, useRef } from 'react'
export default function Parents() {
    const [list, setList] = useState(['html', 'css', 'js'])
    return (
        <div>
            <Child setList={setList} />
            <div className="bd">
                <ul>
                    {
                        list.map((item) => {
                            return <li key={item}>{item}</li>
                        })
                    }
                </ul>
            </div>
        </div>
    )
}